import request from '@/utils/request'

//获取工班设置分页列表
export function getTableList(data) {
  return request({
    url: `/yxdd/gbsz/pageList`,
    method: 'post',
    data:data
  })
}

// 新增工班设置
export function addWorkShift(data) {
  return request({
    url: `/yxdd/gbsz/save`,
    method: 'post',
    data:data
  })
}
// 修改工班设置
export function updateWorkShift(data) {
  return request({
    url: `/yxdd/gbsz/update`,
    method: 'post',
    data:data
  })
}
// 删除工班设置
export function deleteWorkShift(gbId) {
  return request({
    url: `/yxdd/gbsz/del/${gbId}`,
    method: 'post'
  })
}

// 获取工班设置详情
export function getTableListDetail(gbId) {
  return request({
    url: `/yxdd/gbsz/get/${gbId}`,
    method: 'post'
  })
}

// 获取部门人员树形结构列表
export function getDeptUser(params) {
  return request({
    url: `/user-center/dept/deptUser`,
    method: 'post',
    data:params
  })
}

// 获取机构人员树形结构列表
export function getJgglUser(params) {
  return request({
    url: `/user-center/jggl/jgglUserTree`,
    method: 'post',
    data:params
  })
}
